import request from '../utils/request.js';

// 获取用户信息
export const getUserInfo = () => {
    return request.get('/user/info');
};

// 登录
export const login = (data) => {
    return request.post('/auth/login', data);
};

// 注册
export const register = (data) => {
    return request.post('/auth/register', data);
};

// 更新用户信息
export const updateUserInfo = (data) => {
    return request.put('/user/update', data);
};
